<template>
	<view class="content">
		这是首页
	</view>
	<navigator url="/pages/goodsDetail/goodsDetail">
		<button>跳转</button>
	</navigator>
	<navigator url="/pages/testView/testView">
		<button>跳转testView</button>
	</navigator>
	<navigator url="/pages/swiper/swiper">
		<button>跳转swiper</button>
	</navigator>
	<navigator url="/pages/homeSwiper/homeSwiper">
		<button>跳转homeswiper</button>
	</navigator>
	<navigator url="/pages/shopHome/shopHome">
		<button>跳转shophome</button>
	</navigator>
	<p>{{name}}</p>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello',
				name:getApp().globalData.userName
			}
		},
		// computed:{
		// 	name(){
		// 		return getApp().globalData.userName="我的姓名xxx"
		// 	}
		// }
		onLoad() {

		},
		methods: {

		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
